package org.android.ca;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;


public class CAActivity extends Activity implements OnClickListener{
	/** Called when the activity is first created. */
	EditText edittext;
	Button button;
	TextView text;
	
	final static String URL = "http://10.10.2.247:8081/LeaveApplicationSystem/viewpersonalleave?device=mobile&userid=";
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		edittext=(EditText)findViewById(R.id.editText1);
		button=(Button)findViewById(R.id.button1);
		button.setOnClickListener(this);


	}
	@Override
	public void onClick(View v) {
		String empid=edittext.getText().toString();
		
		String s=URL+empid;
		
			Intent intent = new Intent(getApplicationContext(), ListActivity.class);
			intent.putExtra("s",s);
			startActivity(intent);

		

		}



}
